<?php
//echo $this->Form->create(array('action'=>'login'));
//echo $this->Form->inputs(array(
//  'legend' => 'Đăng nhập',
//  'username'=>array('label'=>'Tên đăng nhập'),
//  'password'=>array('label'=>'Mật khẩu')
//));
//echo $this->Form->submit('Đăng nhập');
//echo $this->Form->end();
?>

<div>
						<p class="sepH_b">Đăng nhập vào hệ thống website.</p>
                                                <?php echo $this->Session->flash(); ?>
                                                <div style="color: red"><?php echo $this->Session->flash('auth'); ?></div>

						<?php
echo $this->Form->create(array('action'=>'login', 'class'=>'formEl_a sepH_c')); ?>
						   <div class="msg_box msg_error" id="allErrors" style="display:none"></div>
						   <div class="sepH_a">
								<label for="lusername" class="lbl_a">Tên sử dụng:</label>
								<input type="text" id="lusername" name="data[User][username]" class="inpt_a" />
						   </div>
						   <div class="sepH_b">
                                <label for="lpassword" class="lbl_a">Password:</label>

                                <input type="password" id="lpassword" name="data[User][password]" class="inpt_a" />
						   </div>
						   <div class="sepH_b">
                                
                                
						   </div>
						   <button class="btn_a btn" type="submit">Đăng nhập</button>
						<?php echo $this->Form->end(); ?>

						
					</div>